<?php
if(!defined('InEmpireCMS'))
{
	exit();
}
?>
<?php
require(ECMS_PATH.'e/template/incfile/header.php');
?>
<form name=favaform method=post action="../doaction.php" onsubmit="return confirm('确认要操作?');">
	<div class="center">
		<div class="lm_fm">
				
		<?php
			while($fr=$empire->fetch($sql))
				{
					if(empty($class_r[$fr[classid]][tbname]))
					{continue;}
					$r=$empire->fetch1("select title,titlepic,isurl,titleurl,onclick,totaldown,classid,id from {$dbtbpre}ecms_".$class_r[$fr[classid]][tbname]." where id='$fr[id]' limit 1");
					
					//标题链接
					$titlelink=sys_ReturnBqTitleLink($r);
					if(!$r['id'])
					{
						$r['title']="此信息已删除";
						$titlelink="#EmpireCMS";
					}
				?>
				
				<div class="scfm" id="news<?=$r[id]?>">
					<div class="scfm_bg">
						<div class="scfm_img">
							<a href="<?=$titlelink?>" target="_blank"><img class="lazy" src="<?=$r[titlepic]?>" data-original="<?=$r[titlepic]?>"/></a>
							<a class="btn btn_sc" href="<?=$public_r['newsurl']?>e/member/doaction.php?favaid=<?=$fr[favaid]?>&enews=DelFava&classid=<?=$r[classid]?>&id=<?=$r[id]?>">取消收藏<i class="iconfont icon-shoucang"></i></a>
							<a class="btn btn_xz" href="javascript:;">下载</a>
						</div>
						<div class="sc_title">
							<a href="<?=$titlelink?>" target="_blank"><?=stripSlashes($r[title])?></a><span class="sc_c_info">下载：<?=$r[totaldown]?></span>
						</div>
					</div>
				</div>
				<?php
				}
				?>
		</div>
	</div>
</form>
</table>
<?php
require(ECMS_PATH.'e/template/incfile/footer.php');
?>